package my.learnDB.mybatisPlus.service;

import my.learnDB.mybatisPlus.dao.UserMapper;
import my.learnDB.mybatisPlus.domain.User;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserService implements IUserService {

    @Qualifier("userMapper")
    private UserMapper userMapper;

    public List<User> findAll(){

        List<User> users = userMapper.selectList(null);
        System.out.println(users);
        return users;
    }
}
